package com.cangchu.ui.activity;

import android.support.v4.app.FragmentManager;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import com.cangchu.R;
import com.cangchu.ui.fragment.BatchListFragment;

public class batchActivity extends BaseActivity<batchActivity> {


    @Override
    protected int getContentViewLayoutID() {
        return R.layout.activity_batch;
    }

    @Override
    protected void initViewsAndEvents() {
        setTitle("批次信息");
        Button button = (Button) findViewById(R.id.refresh);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.d(getLogTag(), "点击刷新按钮");
                FragmentManager fragmentManager = getSupportFragmentManager();
                fragmentManager.beginTransaction().replace(R.id.batch_fragment, new BatchListFragment()).commit();
            }
        });
    }


}
